package org.manon.json.annotation;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Support JSon serialisation and desarialisation.
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 */
@Target(TYPE) 
@Retention(RUNTIME)
public @interface JSon {

	/**
	 *	Entity name for filter. (default the class.getSimpleName()) 
	 */
	String value() default "";
	
	/**
	 *	- Apply to single column property (primitives, ..., String, Date, Calendar) 
	 *	- Use for Serializer.
	 */
	boolean filterable() default true;
	
}